#ifndef TARGET_H
#define TARGET_H

#include "rectangle.h"
#include "ball.h"

class Target : public Rectangle
{
public:
    Target();
    Target(float x, float y, float width, float height);

    unsigned health() const;
    void decreaseHealth();
    void resetHealth();
    bool isInside(const Ball &ball) const;
private:
    unsigned health_;
};

#endif // TARGET_H
